package com.atguigu.chaptar10

object $01_GenericDefined {
  def main(args: Array[String]): Unit = {
    /*
    泛型方法   def 方法名[T,U..](参数名:T,..):U = {...}
     */

  }
  def printArray[T](arr:Array[T])={
    arr.foreach(println(_))
  }

}
